﻿<%@ Control Language="C#" AutoEventWireup="true" 
CodeBehind="NotaIngresoListGrid.ascx.cs" 
Inherits="UILGestion.AlmacenAdmin.NotaIngresoListGrid" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" 
TagPrefix="cc1" %>

<script src="../Scripts/controlGrid.js" type="text/javascript"></script>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" 
OnDataBound="ListView1_DataBound" 
DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header">
            <tr id="Tr1" runat="server">
                <th id="Th1" runat="server">
     

                    <asp:LinkButton ID="lb2" CommandName="Sort" CommandArgument="numDocumento" runat="server" ForeColor="Blue">NOTA INGRESO</asp:LinkButton>
                </th>
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" CommandArgument="fecha" runat="server" ForeColor="Blue" >FECHA ING.</asp:LinkButton>
                </th>
                <th id="Th7" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" CommandArgument="documentoTipo" runat="server" ForeColor="Blue" >T/D</asp:LinkButton>
                </th>
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="documentoRef" runat="server" ForeColor="Blue" >DOCUMENTO</asp:LinkButton>
                </th>
                 <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" CommandArgument="proveedor" runat="server" ForeColor="Blue">PROVEEDOR</asp:LinkButton>
                </th>
                 <th id="Th8" runat="server">
                    <asp:LinkButton ID="LinkButton6" CommandName="Sort" CommandArgument="motivo" runat="server" ForeColor="Blue">MOTIVO</asp:LinkButton>
                </th>
                <th id="Th4" runat="server" >
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" CommandArgument="descripcionRef" runat="server" ForeColor="Blue">DOC. REF</asp:LinkButton>
                </th>
                
                <th id="Th6" runat="server">
                    <asp:LinkButton ID="LinkButton4" CommandName="Sort" CommandArgument="observacion" runat="server" ForeColor="Blue">OBSERVACION</asp:LinkButton>
                </th>


                 
                   
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#fff":"#eee" %>'>
            <td>
              






                <asp:Hyperlink runat= "server"  ForeColor="Blue" Width="80px"
                Text='<%# DataBinder.Eval(Container.DataItem,"numDocumento").ToString()%>'  
                 Target="_self"  ID="OrdenCompra"
                NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"formulario").ToString() %>' 
               />   
                
            </td>
            <td   Width="80px">
                    <%# Eval("fechaStr")%> <br />
            </td>
           
                        <td Width="80px">
                <%# Eval("documentoTipo")%>
            </td>
              <td Width="120px">
                <%# Eval("documentoRef")%>
            </td>
             <td Width="250px">
                <%# Eval("proveedor")%>
            </td>
            <td width="150px">
            <%# Eval("motivo")%><br />
                 
            </td>
             <td " width="90px">
            <%# Eval("descripcionRef")%><br />
                 
            </td>
             <td  Width="350px">
            <%# Eval("observacion")%><br />
                 
            </td>
          
          
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                   <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>





    
     